home *** CD-ROM | disk | FTP | other *** search
/ PD ROM 1 / PD ROM Volume I - Macintosh Software from BMUG (1988).iso / Stacks / Hyper Utilities / Menus / ICONs in Menus / card_3053.txt < prev    next >
Encoding:
Text File  |  1988-04-24  |  5.2 KB  |  170 lines

  1. -- card: 3053 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 2648
  5. -- name: 
  6. ----- HyperTalk script -----
  7. On OpenCard
  8.   hide card field 1
  9.   show card field 2
  10.   play "Boing"
  11. End OpenCard
  12.  
  13.  
  14. -- part 1 (field)
  15. -- low flags: 01
  16. -- high flags: 2007
  17. -- rect: left=2 top=23 right=255 bottom=510
  18. -- title width / last selected line: 0
  19. -- icon id / first selected line: 0 / 0
  20. -- text alignment: 0
  21. -- font id: 0
  22. -- text size: 12
  23. -- style flags: 0
  24. -- line height: 16
  25. -- part name: TEXT (1)
  26.  
  27.  
  28. -- part 2 (button)
  29. -- low flags: 00
  30. -- high flags: 8000
  31. -- rect: left=11 top=272 right=330 bottom=140
  32. -- title width / last selected line: 0
  33. -- icon id / first selected line: 1019 / 1019
  34. -- text alignment: 1
  35. -- font id: 0
  36. -- text size: 12
  37. -- style flags: 0
  38. -- line height: 16
  39. -- part name: Transfer to ResEdit™
  40. ----- HyperTalk script -----
  41. on mouseUp
  42.   Open ResEdit‚Ñ¢
  43. end mouseUp
  44.  
  45.  
  46.  
  47. -- part 3 (button)
  48. -- low flags: 00
  49. -- high flags: 0000
  50. -- rect: left=152 top=272 right=330 bottom=218
  51. -- title width / last selected line: 0
  52. -- icon id / first selected line: 1006 / 1006
  53. -- text alignment: 1
  54. -- font id: 0
  55. -- text size: 12
  56. -- style flags: 0
  57. -- line height: 16
  58. -- part name: Quit
  59. ----- HyperTalk script -----
  60. on mouseUp
  61.   DoMenu Quit HyperCard
  62. end mouseUp
  63.  
  64.  
  65.  
  66. -- part 4 (button)
  67. -- low flags: 00
  68. -- high flags: 8000
  69. -- rect: left=370 top=272 right=330 bottom=499
  70. -- title width / last selected line: 0
  71. -- icon id / first selected line: 1007 / 1007
  72. -- text alignment: 1
  73. -- font id: 0
  74. -- text size: 12
  75. -- style flags: 0
  76. -- line height: 16
  77. -- part name: Print
  78. ----- HyperTalk script -----
  79. on mouseUp
  80.   DoMenu Print Report...
  81. end mouseUp
  82.  
  83.  
  84.  
  85. -- part 5 (button)
  86. -- low flags: 00
  87. -- high flags: 0000
  88. -- rect: left=222 top=272 right=330 bottom=288
  89. -- title width / last selected line: 0
  90. -- icon id / first selected line: 1011 / 1011
  91. -- text alignment: 1
  92. -- font id: 0
  93. -- text size: 12
  94. -- style flags: 0
  95. -- line height: 16
  96. -- part name: Home
  97. ----- HyperTalk script -----
  98. on mouseUp
  99.   Go Home
  100. end mouseUp
  101.  
  102.  
  103.  
  104. -- part 6 (button)
  105. -- low flags: 00
  106. -- high flags: 0000
  107. -- rect: left=292 top=272 right=330 bottom=358
  108. -- title width / last selected line: 0
  109. -- icon id / first selected line: 14767 / 14767
  110. -- text alignment: 1
  111. -- font id: 0
  112. -- text size: 12
  113. -- style flags: 0
  114. -- line height: 16
  115. -- part name: About
  116. ----- HyperTalk script -----
  117. on mouseUp
  118.   Show card field 2
  119. end mouseUp
  120.  
  121.  
  122.  
  123. -- part 9 (field)
  124. -- low flags: 81
  125. -- high flags: 2004
  126. -- rect: left=85 top=81 right=185 bottom=431
  127. -- title width / last selected line: 0
  128. -- icon id / first selected line: 0 / 0
  129. -- text alignment: 1
  130. -- font id: 2
  131. -- text size: 18
  132. -- style flags: 1024
  133. -- line height: 24
  134. -- part name: Info (2)
  135. ----- HyperTalk script -----
  136. on mouseUp
  137.   Hide card field 2
  138.   show card field 1
  139.   play "Boing"
  140. end MouseUp
  141.  
  142.  
  143. -- part contents for card part 1
  144. ----- text -----
  145.  
  146. Installing Icons In the Menu of programs can be easily accomplished if you follow a few simple rules.  All ICONs to be placed in menus must have ICON resource ID numbers between 256 and 511, and their corresponding ICON number for the menu is the ICON resource ID number minus 255.  This proceedure involves using ResEdit, as always work only on a back updisk with a copy of the program you are changing. Never use ResEdit on an original copy program, unless you like to live dangerously, like never backing up your hard disk.
  147.  
  148. 1.  Place all of the Icons you want to place on the meus in a resource file.  Or create the Icons in ResEdit and save them as a resources file.  Using Get Info from the File menu to set the Icon resoure ID number for of the ICONs you have created to between 256 and 511.  Be sure you make notes of all the ICONs their ID numbers and their menu numbers.
  149.  
  150. 2.  Open the program in which you want to place the Icons and open the Icon file with ResEdit.  Make note of the Icons already in the program and their ICON resource ID numbers.  In your ICON resource file change the ICON resource number of any of your ICONs that will conflict with the ICONs already in the program.  Select the ICONs from your ICON file and paste them into the ICON resource file of the program.
  151.  
  152. 3.  Open the MENU resource for the program and the individual MENU you want to place the first numbers into.  Each menu has a separate resource file, MENU ID 1 is usually the Apple Menu, MENU ID 2 is the File menu, etc.  Scroll down to the menu item you want the ICON by and change the icon# from 0 to the ICON number for that ICON (remember this is the ICON number not the ICON resource ID).
  153.  
  154. 4.  After plascing all of the ICON number next to the appropriate menu item, close the MENU resources you opened and when asked if you want to save the changes to the program click yes and your changes will be made in the program.
  155.  
  156. 5.  Quit ResEdit and open the altered program.  You should be able to see the ICONs in the menus if not check you proceddures and try again.  The only reason it usually may not have worked is placing the wrong numbers in the icon# for the menu item.
  157.  
  158. Enjoy Putting ICONs on your menus, I hve done it to several programs and it makes them much more unique and interesting to work with.
  159.  
  160. Original TEXT by: Tom Hillson
  161. HyperCard Version by: Frank Ventura
  162.  
  163.  
  164.  
  165. -- part contents for card part 9
  166. ----- text -----
  167. ICONs in Menus Stack Version 1.0
  168.  
  169. Original TEXT by Tom Hillson
  170. Stack Version by Frank Ventura